package com.yjt.sousou.detail;


import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yjt.sousou.R;
import com.yjt.sousou.detail.entity.OrderDetail;

import java.util.List;

/**
 * 作者：83734
 * 时间：2018/11/25
 * 描述：
 */
public class OrderLogAdapter extends BaseQuickAdapter<OrderDetail.DataBean.LogBean,BaseViewHolder> {
    public OrderLogAdapter(int layoutResId, @Nullable List<OrderDetail.DataBean.LogBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, OrderDetail.DataBean.LogBean item) {
       helper.setText(R.id.tv_date,item.getTime_name_d());
       helper.setText(R.id.tv_time,item.getTime_name_h());
       helper.setText(R.id.tv_content,item.getContent());
    }
}
